package cn.edu.zknu.mita.mapper;

import cn.edu.zknu.mita.model.FindImage;
import cn.edu.zknu.mita.model.FindMsg;

import java.util.List;

/**
 * Created by iwlnner on 2020/3/26.
 */
public interface FindMsgMapper {

    Long addFindMsg(FindMsg findMsg);

    FindMsg getDetail(Long id);

    List<FindMsg> listIndexFindGoodsMsg();

    List<FindMsg> listIndexFindLostorMsg();

    Long batchInsert(List<FindMsg> findMsgs);

    List<FindMsg> listFindMsg(Integer type);

    List<FindMsg> listFindMsgByUser(Long userId);

    Integer deleteFindMsg(Long id);

    List<String> listTitleByFindImage(List<FindImage> findImages);

    List<FindMsg> listSearchMsg(String keyword);
}
